//连接数据，设置模型
const mongoose=require("mongoose");

require("../model/user.server.model");
var db=mongoose.connect("mongodb://localhost/john01",(err)=>{
	if(!err){
		console.log("mongodb connect....");
		//db.disconnect();
	}
});
module.exports=db;